<script language="javascript">
document.body.addEventListener('touchmove', function(event) { event.preventDefault(); }, false); 

var imgs = ['btn_bg1.png','btn_bg2.png','btn_chakan.png','btn_ckgjb.png','btn_close_pop.png','btn_dowm_img.png','btn_down.png','btn_gonglue.png','btn_jxmz.png','btn_p_1.png','btn_p_2.png','btn_saiyisai.png','btn_shishe.png','ewm.png','index_bg_cloud.png','index_bg_light.png','index_mid.png','index_txt.png','info_1.png','left_right.png','list.txt','logo.png','phb_bg.png','ph_bg1.png','ph_bg2.png','ph_bg3.png','pop_bg.png','pop_r_btn.png','pop_txt.png','p_btn1.png','result_money.png','result_txt.png','rpb_bg.png','sceen_top.png','scroll-bar.png','sc_1.png','sc_2.png','sc_3.png','sc_4.png','sc_5.png','sc_5_bak.png','sel_bg.png','share.jpg','share_bg1.png','share_bg2.png','share_img1.png','share_img2.png','talk_bg_1.png','talk_bord.png','talk_success.png'];
var totalCount = imgs.length , hasLoad = 0 ;

$(function(){
	$.get('/index/www/img/loading_bg.jpg',function(){
		startLoading();
		$('#loadcount').fadeIn();
	});
});

function startLoading(){
	for(i=0;i<imgs.length;i++){
		var img = new Image; 
		img.onload = function(){
			hasLoad++;
			$('#loadcount').text(parseInt(hasLoad*100/totalCount));
			if(hasLoad+2>=totalCount){
				$('#loading').fadeOut(function(){ $('#loading').remove(); start(); }); 
			}
		} 
		img.src = '/index/www/img/'+imgs[i];  
	}
}
</script> 
<div id="loading">
	<span id="loadcount">0</span>
</div>